home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Event / DLL / MkStubsOs < prev    next >
Text File  |  1995-09-04  |  5KB  |  195 lines

  1.  
  2. ObjectFiles    =        \
  3.             o.Event    \
  4.             o.MClaimInit    \
  5.             o.MRelease    \
  6.             o.MRelMsg    \
  7.             o.MRelWindow    \
  8.             o.taskname    \
  9.  
  10.  
  11. LibName        =    Event
  12.  
  13.  
  14.  
  15. # Template makefile to make all .o files
  16. # and the SDLS Stubs file for DeskLib
  17. # sublibraries.
  18. # Julian Smith 16 Mar 1995.
  19.  
  20.  
  21. # The macro $(ObjectFiles) should be set at the 
  22. # start of this file, to be a space-separated
  23. # list of object files.
  24. # This is done by 'Makatic'.
  25.  
  26.  
  27. # The macro $(LibName) should also be set at the 
  28. # start of this file, to be the name of the 
  29. # DeskLib sublibrary.
  30. # This is done by 'Makatic'.
  31.  
  32. # Compiler and linker flags, These can be anything. 
  33. # All flags required by Straylight (eg CC -zM and
  34. # Link -rmf) are included in the macros $(CC) and
  35. # $(LINK).
  36. #
  37. CCFlags        =    -fahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
  38. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  39.  
  40.  
  41. # Macros for commands, including the Straylight
  42. # tool 'cdll'. Note that DRLink doesn't seem to
  43. # work with the SDLS.
  44. #
  45. CC        =    cc -c -zM -d_DLL -JC:DLLLib.,:mem $(CCFlags)
  46. ASM        =    ObjAsm $(ASMFlags)
  47. CDLL        =    cdll
  48. LINK        =    link
  49. AS        =    as -dde -throwback
  50.  
  51.  
  52. # filename of DLL Stubs aof file. This is linked with client apps.
  53. DLL_Stubs    =    Stubs
  54.  
  55.  
  56. # Filenames of intermediate files needed to make $(DLL_Lib) and $(DLL_Stubs).
  57. #
  58. # DLL_Def:        Standard definition file as per SDLS docs.
  59. # DLL_OtherStubsSource    Assembler source to be partially linked into
  60. #            the final stubs file. This will force linking
  61. #            in of stubs from any other DLLs used by this
  62. #            library when a client application is built.
  63. # DLL_PlainStubs    The vanilla stubs file created by SDLS's cdll.
  64. # DLL_OtherStubsObject    Assembled from DLL_OtherStubsSource. This
  65. #            simply imports __DeskLib_SDLS_Stubs_<libname>'s
  66. #            for all DeskLib DLLs used by this library, and
  67. #            exports __DeskLib_SDLS_Stubs_<thislibname>.
  68. #
  69. DLL_Def            =    ^.DLLDef
  70. DLL_OtherStubsSource    =    ^.OtherStubs
  71.  
  72. DLL_PlainStubs        =    PlainStubs
  73. DLL_OtherStubsObject    =    OSObj
  74.  
  75. # -------------------------------------------------------
  76. # Everything below here should probably not be changed...
  77. # -------------------------------------------------------
  78.  
  79.  
  80.  
  81. # Now all the rules...
  82.  
  83.  
  84. # Here's the two things we want to make...
  85. #
  86. All:    $(DLL_Stubs) $(ObjectFiles)
  87.  
  88. $(DLL_Stubs):    $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  89.     $(LINK) -aof -o $@ $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  90.  
  91. $(DLL_PlainStubs):    $(DLL_Def)
  92.     $(CDLL) -def $(DLL_Def) -stub $(DLL_PlainStubs)
  93.  
  94.  
  95. #$(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  96. #    $(AS) -o $(DLL_OtherStubsObject) $(DLL_OtherStubsSource)
  97.  
  98. $(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  99.     $(ASM) $(ASMFlags) -from $(DLL_OtherStubsSource) -to $(DLL_OtherStubsObject) 
  100.  
  101.  
  102. $(DLL_Def):    
  103.     | Warning: No DLL definition file exists.
  104.     | Creating a default DLL definition file: $(DLL_Def)
  105.     | This will have to be altered by hand.
  106.     $(CDLL) -def $(DLL_Def) -obj $(ObjectFiles)
  107.  
  108.  
  109.  
  110. # Rule for compiling C source code for a Straylight dynamically-linked library.
  111.  
  112. VPATH = @.^
  113.  
  114. .SUFFIXES:    .o .c .s
  115.  
  116. .c.o:
  117.     $(CC) -o $@ $<
  118.  
  119. .s.o:
  120.     $(ASM) $(ASMFlags) -from $< -to $@
  121.  
  122.  
  123.  
  124. # Dynamic dependencies:
  125. o.Event:    ^.c.Event
  126. o.Event:    C:h.stdlib
  127. o.Event:    C:h.stdarg
  128. o.Event:    C:h.string
  129. o.Event:    DeskLib:h.Error
  130. o.Event:    DeskLib:h.Core
  131. o.Event:    C:h.stddef
  132. o.Event:    C:DLLLib.h.dll
  133. o.Event:    C:h.kernel
  134. o.Event:    DeskLib:h.WimpSWIs
  135. o.Event:    DeskLib:h.Wimp
  136. o.Event:    ^.h.EventDefs
  137. o.Event:    DeskLib:h.LinkList
  138. o.Event:    DeskLib:h.Event
  139. o.MClaimInit:    ^.c.MClaimInit
  140. o.MClaimInit:    ^.h.EMsgDefs
  141. o.MClaimInit:    C:h.stdlib
  142. o.MClaimInit:    DeskLib:h.LinkList
  143. o.MClaimInit:    DeskLib:h.Core
  144. o.MClaimInit:    C:h.stddef
  145. o.MClaimInit:    C:DLLLib.h.dll
  146. o.MClaimInit:    C:h.kernel
  147. o.MClaimInit:    DeskLib:h.Error
  148. o.MClaimInit:    DeskLib:h.Event
  149. o.MClaimInit:    DeskLib:h.Wimp
  150. o.MClaimInit:    DeskLib:h.EventMsg
  151. o.MRelease:    ^.c.MRelease
  152. o.MRelease:    ^.h.EMsgDefs
  153. o.MRelease:    C:h.stdlib
  154. o.MRelease:    DeskLib:h.LinkList
  155. o.MRelease:    DeskLib:h.Core
  156. o.MRelease:    C:h.stddef
  157. o.MRelease:    C:DLLLib.h.dll
  158. o.MRelease:    C:h.kernel
  159. o.MRelease:    DeskLib:h.Error
  160. o.MRelease:    DeskLib:h.Event
  161. o.MRelease:    DeskLib:h.Wimp
  162. o.MRelease:    DeskLib:h.EventMsg
  163. o.MRelMsg:    ^.c.MRelMsg
  164. o.MRelMsg:    ^.h.EMsgDefs
  165. o.MRelMsg:    C:h.stdlib
  166. o.MRelMsg:    DeskLib:h.LinkList
  167. o.MRelMsg:    DeskLib:h.Core
  168. o.MRelMsg:    C:h.stddef
  169. o.MRelMsg:    C:DLLLib.h.dll
  170. o.MRelMsg:    C:h.kernel
  171. o.MRelMsg:    DeskLib:h.Error
  172. o.MRelMsg:    DeskLib:h.Event
  173. o.MRelMsg:    DeskLib:h.Wimp
  174. o.MRelMsg:    DeskLib:h.EventMsg
  175. o.MRelWindow:    ^.c.MRelWindow
  176. o.MRelWindow:    ^.h.EMsgDefs
  177. o.MRelWindow:    C:h.stdlib
  178. o.MRelWindow:    DeskLib:h.LinkList
  179. o.MRelWindow:    DeskLib:h.Core
  180. o.MRelWindow:    C:h.stddef
  181. o.MRelWindow:    C:DLLLib.h.dll
  182. o.MRelWindow:    C:h.kernel
  183. o.MRelWindow:    DeskLib:h.Error
  184. o.MRelWindow:    DeskLib:h.Event
  185. o.MRelWindow:    DeskLib:h.Wimp
  186. o.MRelWindow:    DeskLib:h.EventMsg
  187. o.taskname:    ^.c.taskname
  188. o.taskname:    DeskLib:h.Event
  189. o.taskname:    DeskLib:h.Core
  190. o.taskname:    C:h.stddef
  191. o.taskname:    C:DLLLib.h.dll
  192. o.taskname:    C:h.kernel
  193. o.taskname:    DeskLib:h.Wimp
  194.